#include <stdio.h>
#include <conio.h>

int main(){
    int x[5] = {1,2,3,4,5};
    double y[5] = {0.1,0.2,0.3,0.4,0.5};
    int i;

    for(i=0; i<5; i++){
        printf("&x[%d]=%p\n",i,&x[i]);
    }
    printf("\n");

    for(i=0; i<5; i++){
        printf("x+%d=%p\n",i,x+i);
    }
    printf("\n");

    for(i=0; i<5; i++){
        printf("x[%d]=%d\n",i,x[i]);
    }

    for(i=0; i<5; i++){
        printf("&y[%d]=%p\n",i,&y[i]);
    }
    printf("\n");

    for(i=0; i<5; i++){
        printf("y+%d=%p\n",i,y+i);
    }
    printf("\n");

    for(i=0; i<5; i++){
        printf("y[%d]=%lf\n",i,y[i]);
    }

    getch();
    return 0;
}